widget: deprecate separator style properties
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 30 Dec 2015 18:51:14 +0000 (10:51 -0800)
committerCosimo Cecchi <cosimoc@gnome.org>
Sun, 3 Jan 2016 08:42:51 +0000 (00:42 -0800)
They're not used in GTK anymore. Also remove them from the default
theme.

gtk/gtkwidget.c
gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 70e6dedfa828c2a99f21e2559968bcc6835aed61..a1dbdf84196c3c755b971609497d41bd48c97dae 100644 (file)
@@ -3566,13 +3566,16 @@ G_GNUC_END_IGNORE_DEPRECATIONS
    * configurable width and should be drawn using a box instead of a line.
    *
    * Since: 2.10
+   *
+   * Deprecated: 3.20: Use CSS properties on the separator elements to style
+   *   separators; the value of this style property is ignored.
    */
   gtk_widget_class_install_style_property (klass,
                                            g_param_spec_boolean ("wide-separators",
                                                                  P_("Wide Separators"),
                                                                  P_("Whether separators have configurable width and should be drawn using a box instead of a line"),
                                                                  FALSE,
-                                                                 GTK_PARAM_READABLE));
+                                                                 GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
 
   /**
    * GtkWidget:separator-width:
@@ -3581,13 +3584,16 @@ G_GNUC_END_IGNORE_DEPRECATIONS
    * This property only takes effect if the "wide-separators" style property is %TRUE.
    *
    * Since: 2.10
+   *
+   * Deprecated: 3.20: Use the standard min-width CSS property on the separator
+   *   elements to size separators; the value of this style property is ignored.
    */
   gtk_widget_class_install_style_property (klass,
                                            g_param_spec_int ("separator-width",
                                                              P_("Separator Width"),
                                                              P_("The width of separators if wide-separators is TRUE"),
                                                              0, G_MAXINT, 0,
-                                                             GTK_PARAM_READABLE));
+                                                             GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
 
   /**
    * GtkWidget:separator-height:
@@ -3596,13 +3602,16 @@ G_GNUC_END_IGNORE_DEPRECATIONS
    * This property only takes effect if the "wide-separators" style property is %TRUE.
    *
    * Since: 2.10
+   *
+   * Deprecated: 3.20: Use the standard min-height CSS property on the separator
+   *   elements to size separators; the value of this style property is ignored.
    */
   gtk_widget_class_install_style_property (klass,
                                            g_param_spec_int ("separator-height",
                                                              P_("Separator Height"),
                                                              P_("The height of separators if \"wide-separators\" is TRUE"),
                                                              0, G_MAXINT, 0,
-                                                             GTK_PARAM_READABLE));
+                                                             GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
 
   /**
    * GtkWidget:scroll-arrow-hlength:
index 951d19aeb9e263b4012d3162659bc04b5ffad4a9..99b6d69648e28e3d90e1ccb613ece1deecb15563 100644 (file)
@@ -1131,8 +1131,6 @@ headerbar {
 
   .header-bar-separator,
   & > GtkBox > separator.vertical {
-    -GtkWidget-wide-separators: true;
-    -GtkWidget-separator-width: 1px;
     border-width: 0 1px;
     border-image: linear-gradient(to bottom,
                                   transparentize($borders_color,1),
@@ -2661,17 +2659,9 @@ scrolledwindow {
 //vbox and hbox separators
 separator {
   // always disable separators
-  // -GtkWidget-wide-separators: true;
   background: transparentize(black, 0.9);
   min-width: 1px;
   min-height: 1px;
-
-  // Font and File button separators
-  button.file &.vertical,
-  button.font &.vertical {
-    // always disable separators
-    -GtkWidget-wide-separators: true;
-  }
 }
 
 /*********
index 70b7b4f6c86d0174db62b62d2549937a9eef1772..19723ac5b0b21b63d2d517984395fec299eb1772 100644 (file)
@@ -1632,8 +1632,6 @@ headerbar {
   .titlebar:not(headerbar) .header-bar-separator, .titlebar:not(headerbar) > GtkBox > separator.vertical,
   headerbar .header-bar-separator,
   headerbar > GtkBox > separator.vertical {
-    -GtkWidget-wide-separators: true;
-    -GtkWidget-separator-width: 1px;
     border-width: 0 1px;
     border-image: linear-gradient(to bottom, rgba(28, 31, 31, 0), #1c1f1f 30%, #1c1f1f 70%, rgba(28, 31, 31, 0) 100%) 0 1/0 1px stretch; }
     .titlebar:not(headerbar) .header-bar-separator:backdrop, .titlebar:not(headerbar) > GtkBox > separator.vertical:backdrop,
@@ -3712,8 +3710,6 @@ separator {
   background: rgba(0, 0, 0, 0.1);
   min-width: 1px;
   min-height: 1px; }
-  button.file separator.vertical, button.font separator.vertical {
-    -GtkWidget-wide-separators: true; }
 
 /*********
  * Lists *
index 50703a064c0f3fccdd828702610e019ce36bd628..779891171b7674b86a58caa6bf591a79a9ccc2d6 100644 (file)
@@ -1632,8 +1632,6 @@ headerbar {
   .titlebar:not(headerbar) .header-bar-separator, .titlebar:not(headerbar) > GtkBox > separator.vertical,
   headerbar .header-bar-separator,
   headerbar > GtkBox > separator.vertical {
-    -GtkWidget-wide-separators: true;
-    -GtkWidget-separator-width: 1px;
     border-width: 0 1px;
     border-image: linear-gradient(to bottom, rgba(157, 157, 153, 0), #9d9d99 30%, #9d9d99 70%, rgba(157, 157, 153, 0) 100%) 0 1/0 1px stretch; }
     .titlebar:not(headerbar) .header-bar-separator:backdrop, .titlebar:not(headerbar) > GtkBox > separator.vertical:backdrop,
@@ -3874,8 +3872,6 @@ separator {
   background: rgba(0, 0, 0, 0.1);
   min-width: 1px;
   min-height: 1px; }
-  button.file separator.vertical, button.font separator.vertical {
-    -GtkWidget-wide-separators: true; }
 
 /*********
  * Lists *